/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package suncertify.Server;
import java.util.logging.Level;
import java.util.logging.Logger;
import suncertify.shared.ServerProperty;
import suncertify.shared.DBConfigUI;
import suncertify.shared.DBConfigController;

/**
 *
 * @author jshah
 */
public class ServerDBConfigController extends DBConfigController{

    ServerDBConfigController(){

        super();
    }

    @Override
    public void setDBLocation(String location){
        if(!(location == null))
            ServerProperty.setServerDBProp(location);
        Logger.getLogger(ServerDBConfigController.class.getName()).log(Level.INFO, "SERVER DB FILE: {0}",ServerProperty.getServerDBFileProp());
        ServerProperty.storeProps();
    }
}
